Surf-net ASP Weekly Poll v2 beta


The Surf-net ASP Weekly Poll v2 beta is written by Bruce Corkhill

*************************************************************************************
**  Copyright Notice                                                               **
**  Copyright 2001 Bruce Corkhill All Rights Reserved.                             **
**  This script is free to use and alter as much as you like.                      **
**  You may NOT resell or redistribute this script without permission!             **
**  You may NOT pass the script off as your own work!                              **
**  You must place a link to http://www.surf-net.co.uk somewhere on your web site. **
*************************************************************************************

The copyright notice has been placed here as I have found people passing my scripts of as there own and I have even come across someone selling them!!


If you are having problems running the script then please post a message about the problem to the surf-net web forum at: -
	
	 http://www.surf-net.co.uk/forum 

your questions will be answered there NOT be e-mail



The Weekly POll uses ASP and must be run through a web sever supporting ASP.

Luckily Windows 98 comes with Personal Web Sever found on the windows 98 CD. Windows 2000 is even better as it comes with Microsoft's Web Sever, IIS 5. 

Windows NT 4 and 95 users can get a copy of Personal Web Sever by downloading NT 4 Option Pack from Microsoft. Don't be fooled by the name as it asks if you wish to download Windows 95 version.

A Text Editing program like UltraEdit is also highly recommended for editing any ASP scripts and an FTP program like Bullet FTP for uploading any scripts to your ASP enabled web space.




Using the ASP Weekly Poll


Unzip all the files to the same directory

Files must be run through an ASP enabled web sever (CGI is not the same)

The main page is 'default.asp'

To add a new Weekly Poll use the page 'admin.htm' to add a new Weekly Poll for a new week

the database is written in Access 2000, this program must be used to amend the database directly.



Custmoising the Weekly Poll script

If you wish to place the Weekly Poll on a diffrent page to the default.asp page supplied (e.g your homepage) then you will need to: -

1. delete the default.asp page. 
2. Place everything else supplied in the zip file into the folder where the page is you want the weekly poll to be on.
3. Place the following line into the HTML on the page where you want the Weekly Poll to be displayed (the page must have the extension .asp): -

    	<!--#include file="weekly_poll.inc" -->

4. If you find you are having problems make sure: -

	the page you want the weekly poll on is an ASP page with the .asp extension.
	the, <!--#include file="weekly_poll.inc" -->, is in the HTML not ASP. 
	all the other files from the zip file, except the default.asp, are in the same folder as the page you want the Weekly Poll on. 



If you recieve the following error: -

Microsoft OLE DB Provider for ODBC Drivers error '80004005' 
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.

This means that the directory the database is in does not have the right permissions to be able to write to the database. 

If you are running the server yourself then you can change the permissions by right clicking on the folder containing the database and choose sharing, then choose permissions, add IUser_yourcomputername with the permssion set to allow change.

If you are not running the server yourself then you will need to contact the server's adminstrator and ask them to change the permissions otherwise you cannot update a database.



If you are having trouble with the script then please take a look at my FAQ's, before e-mailing me, at: -

http://www.surf-net.co.uk/asp/FAQ

